﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThinhTien.Models
{
    public class BaseViewModel
    {
        public int? ProductID { get; set; }
        public Guid? ID { get; set; }

        public Guid UserID
        {
            get
            {
                var userInfo = System.Web.HttpContext.Current.Session["UserInfo"] as UserInfo;

                if (userInfo != null)
                {
                    return userInfo.ID;
                }

                return Guid.Empty;
            }
        }

        public DateTime? CreatedDate { get; set; }
        public DateTime? UpdatedDate { get; set; }
        public string CreatedBy { get; set; }
        public string UpdatedBy { get; set; }

        public string Action { get; set; }
    }
}
